.PHONY: clean all test test_verbose test_all 

all:	bin/debug/koma-sim

bin:
	mkdir bin

bin/debug:	bin
	mkdir bin/debug

bin/test:	bin
	mkdir bin/test

bin/debug/koma-sim:	src/main.rs bin/debug
	rustc --color never -g -o $@ $<

test:	bin/debug/unix_random_test
	bin/debug/unix_random_test

test_verbose: bin/debug/unix_random_test
	bin/debug/unix_random_test --show-output

test_all: bin/debug/unix_random_test
	bin/debug/unix_random_test --show-output --include-ignored

bin/debug/unix_random_test:	src/unix_random_test.rs bin/debug
	rustc --color never -g --test -o $@ $<

clean:
	-rm -rf bin
